<?php
    include_once("functions_bandwidth.php");
    include_once("datefunctions.php");

    $Start = date("Y/m/d") . " 00:00:00";
    $Einde = date("Y/m/d") . " 23:59:59";
    $bw = func_bw_total_volume_periode_hour_graph($Start, $Einde);

print "<chart>";
print "<chart_type>column</chart_type>";
print "<chart_border left_thickness='1' top_thickness='0' bottom_thickness='1' />";
print "<axis_category size='10' />";
print "<axis_value size='10' />";
print "<legend layout='hide' />";
print "<chart_data>
  <row>
	 <null/>
	 <string>1</string>
	 <string>2</string>
	 <string>3</string>
	 <string>4</string>
     <string>5</string>
	 <string>6</string>
	 <string>7</string>
	 <string>8</string>
     <string>9</string>
     <string>10</string>
     <string>11</string>
	 <string>12</string>
	 <string>13</string>
	 <string>14</string>
     <string>15</string>
	 <string>16</string>
	 <string>17</string>
	 <string>18</string>
     <string>19</string>
     <string>20</string>
     <string>21</string>
     <string>22</string>
     <string>23</string>
  </row>
  <row>
	 <string>Region A</string>
	 <number>" . $bw['0'] . "</number>
     <number>" . $bw['1'] . "</number>
	 <number>" . $bw['2'] . "</number>
     <number>" . $bw['3'] . "</number>
	 <number>" . $bw['4'] . "</number>
     <number>" . $bw['5'] . "</number>
	 <number>" . $bw['6'] . "</number>
     <number>" . $bw['7'] . "</number>
	 <number>" . $bw['8'] . "</number>
     <number>" . $bw['9'] . "</number>
	 <number>" . $bw['10'] . "</number>
     <number>" . $bw['11'] . "</number>
	 <number>" . $bw['12'] . "</number>
     <number>" . $bw['13'] . "</number>
	 <number>" . $bw['14'] . "</number>
     <number>" . $bw['15'] . "</number>
	 <number>" . $bw['16'] . "</number>
     <number>" . $bw['17'] . "</number>
	 <number>" . $bw['18'] . "</number>
     <number>" . $bw['19'] . "</number>
     <number>" . $bw['20'] . "</number>
     <number>" . $bw['21'] . "</number>
	 <number>" . $bw['22'] . "</number>
     <number>" . $bw['23'] . "</number>
  </row>
</chart_data>";
print "</chart>";
?>
